package com.dji.sample.wayline.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjt
 * @since 2022-10-27
 */
@TableName("wayline_file_position")
public class WaylineFilePositionEntity extends Model<WaylineFilePositionEntity> {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String lng;

    private String lat;

    private String height;

    private String uniKey;

    private Date createTime;

    private String data;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getUniKey() {
        return uniKey;
    }

    public void setUniKey(String uniKey) {
        this.uniKey = uniKey;
    }

    public WaylineFilePositionEntity(){};
    public WaylineFilePositionEntity(String lng, String lat, String alt, String key) {
        this.lng = lng;
        this.lat = lat;
        this.height = alt;
        this.uniKey = key;
        this.createTime=new Date();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
